/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.psdk;

import android.text.TextUtils;
import com.qihoo.psdk.util.h;
import java.util.HashMap;
import java.util.Vector;

class l extends Thread {
    public void run() {
        int i = 1;
        h.a(k.a(), "Startup the QSession.");
        while (k.d != null)
            try {
                if (i != 0) {
                    i = 0;
                    sleep(30000L);
                }
                else {
                    sleep(1800000L);
                }
                for (int j = 0; j < k.c.size(); ++j) {
                    com.qihoo.psdk.local.a locala = (com.qihoo.psdk.local.a) k.c.get(j);
                    if (locala.e != n.c(k.d, locala.d))
                        continue;
                    HashMap localHashMap = new HashMap();
                    localHashMap.put("msgId", locala.i);
                    a.a("downinstall", localHashMap);
                    k.c.remove(j);
                    break;
                }
                String str = n.b(n.n(k.d));
                if (!(TextUtils.isEmpty(str)))
                    k.a(k.d, str, true);
            } catch (Exception localException) {
                h.a(k.a(), localException);
            } catch (Error localError) {
                h.a(k.a(), localError);
            }
        h.b(k.a(), "Warning, the QSession is stoppped!");
    }
}